<?php

namespace App\Model\Order;

use Illuminate\Database\Eloquent\Model;

class MealSupplementBalance extends Model
{
    protected $table = 'meal_supplement_balance';
    protected $fillable = [
        'user_id', 'meal_supplement_balance'
    ];
    public function userOrder()
    {
        return $this->hasMany('App\Model\Order\UserOrder', 'meal_supplement_balance_id', 'id');
    }

    public function users()
    {
        return $this->belongsTo('App\Model\User\User', 'user_id', 'id');
    }
}
